<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models\Projects;

use Carbon\Carbon;
use App\Models\Eloquent;
use App\Models\Meimei\Traits\SignOssUrlTrait;
use App\Models\Meimei\Traits\ExplodeTrait;
/**
 * Class QtpProjectCate
 *
 * @property int $id
 * @property string $name
 * @property string $icon
 * @property int $sort
 * @property string $tags
 * @property string $remark
 * @property int $enable
 * @property Carbon|null $created_at
 * @property Carbon|null $updated_at
 *
 * @package App\Models
 */
class ProjectCate extends Eloquent
{
    use ExplodeTrait;
    use SignOssUrlTrait;
    protected $explode_img = ['icon']; // 单图
    protected $explode = ['tags'];

	protected $table = 'project_cates';

	protected $casts = [
		'sort' => 'int',
		'enable' => 'int'
	];

	protected $fillable = [
		'name',
		'icon',
		'sort',
		'tags',
		'remark',
		'enable'
	];

    public static $fillables = [
        'name' => '分类名称',
        'icon' => '分类图标',
        'sort' => '分类排序',
        'tags' => '分类标签',
        'remark' => '分类描述',
        'enable' => '分类状态',
    ];
}
